﻿using System;

using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;

namespace MVCBootstrap.Tests.WebUI {

	public static class TestHelper {

		static TestHelper() { }

		public static IWebDriver GetDriver() {
			//_driver = new InternetExplorerDriver();
			//IWebDriver driver = new ChromeDriver();
			IWebDriver driver = new FirefoxDriver();

			// this will make the driver wait 10 seconds when looking for an element (to allow for submits)
			driver.Manage().Timeouts().ImplicitlyWait(new TimeSpan(0, 0, 5));
			return driver;
		}
	}
}